<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<link rel="stylesheet" type="text/css" href="css/main.css" />
		<title>疯狂"答人"</title>
		<style type="text/css">
			html body {
				background: url(img/first-back.png) 100% 0% repeat;
			}
		</style>
	</head>

	<body>
		<div class="wrap">
			<div class="center">
				<div class="right_pie">
				</div>
				<div class="left_pie">
				</div>
				<img src="img/yuanhuan.png" />
				<div class="percent">
				</div>
			</div>
			<div class="loading">
				<img src="img/loading.png" />
			</div>
		</div>
	</body>
	<script src="js/jquery-1.11.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/main.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		var persent = 1;
		var pieRight = 90; //270
		var pieLeft = 0; //120
		var timer1 = null;
		showTime()
		function showTime() {
			timer1 = setInterval(function() {
				persent += 1;
				pieRight +=4;
				
				if(persent >= 100) {
					clearInterval(timer1);
				}
				if( pieRight > 270 ){
					pieRight = 270;
					$(".right_pie").css("opacity",0)
					pieLeft  += 2.5
					if( pieLeft > 120 ){
						pieLeft = 120
						$(".left_pie").css("opacity",0)
					}
				}
				
				$(".right_pie").css("-o-transform", "rotate(" + pieRight + "deg)");
				$(".right_pie").css("-moz-transform", "rotate(" + pieRight + "deg)");
				$(".right_pie").css("-webkit-transform", "rotate(" + pieRight + "deg)");
				
				$(".left_pie").css("clip", "rect( 0px, 120px, 60px, " + pieLeft + "px)");
				
				$(".percent").html(persent+"%");
			}, 20)
		}
		
	</script>

</html>